package com.timothy.answer;

import java.util.ArrayList;
import java.util.List;
import com.timothy.service.MessageSender;


public class STTwoButtonAlphaAnswer extends BaseAnswer {
	
	//mark is value of answer
	private String mark;
	
	private List<Vote> votes = new ArrayList<Vote>();
	
	public STTwoButtonAlphaAnswer() {

	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Override
	public String getAnswerContent() {
		return mark;
	}
	
	public List<Vote> getVotes() {
		return votes;
	}

	public void setVotes(List<Vote> votes) {
		this.votes = votes;
	}

	public String getMark() {
		return mark;
	}

	@Override
	public String toMessage() {
		int slide = getQuestion().getSlideIndex();
		return String.format( MessageSender.ST_Two_Button_Alpha_Question_Result, slide, getAnswerContent());
	}

}
